home *** CD-ROM | disk | FTP | other *** search
/ Interplay's Learn to Program Basic (Review Copy) / Learn to Program Basic Review Copy (Interplay)(June 23, 1998).ISO / pc / ltpbasic / refxmpl / sin.bas < prev    next >
BASIC Source File  |  1998-04-07  |  182b  |  13 lines

  1. Rem Print the sine of angles
  2. Rem between 0 and 360 degrees
  3. CLS
  4. For angle = 0 To 360
  5. REM Convert degrees to radians
  6. rad = angle / (3.14159 * 2)
  7. s = Sin(rad)
  8. Print s
  9. Next angle
  10. End
  11.  
  12.